﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Library.Common.Model
{
    public enum CustomError
    {
        /// <summary>
        /// 操作成功
        /// </summary>
        [Description("操作成功")]
        Success = 200,

        /// <summary>
        /// 无效操作
        /// </summary>
        [Description("无效操作")]
        InvalidOperation = 210,

        /// <summary>
        /// 参数错误
        /// </summary>
        [Description("参数错误")]
        ParameterError = 300,

        /// <summary>
        /// 非法请求
        /// </summary>
        [Description("非法请求")]
        SafetyError = 301,

        /// <summary>
        /// 签名错误
        /// </summary>
        [Description("签名错误")]
        SignError = 320,

        /// <summary>
        /// 身份认证失败
        /// </summary>
        [Description("身份认证失败")]
        AuthError = 321,

        /// <summary>
        /// 没有该数据的操作权限
        /// </summary>
        [Description("没有该数据的操作权限")]
        UserOptDenyError = 350,

        /// <summary>
        /// 网络错误
        /// </summary>
        [Description("网络错误")]
        InternetError = 400,

        /// <summary>
        /// 系统错误
        /// </summary>
        [Description("系统错误")]
        SysError = 500,

        /// <summary>
        /// 其它错误
        /// </summary>
        [Description("其它错误")]
        OtherError = 999
    }
}
